package com.bw.mvp.ui;

import com.bw.mvp.base.BaseView;
import com.bw.mvp.model.BaseResponse;
import com.bw.mvp.model.PostListModel;

import io.reactivex.Observable;

/**
 * 接口规范
 */
public interface PostContract {
    interface IPostModel{
        Observable<BaseResponse<PostListModel>> getPostList(int pageNum, int pageSize);
    }
    interface IPostPresenter{
        void getPostList(int pageNum, int pageSize);
    }
    interface IPostView extends BaseView {
        void getPostListSuccess(PostListModel postListModel);
        void getPostListError();
    }
}
